package com.oa.admin.service;

import com.joneying.common.web.response.Resp;
import com.oa.admin.dto.MonitoringAddDTO;
import com.oa.admin.dto.MonitoringUpdateDTO;
import com.oa.admin.vo.MonitoringListVO;
import com.oa.core.PageResult;
import com.oa.admin.entity.Monitoring;
import com.baomidou.mybatisplus.service.IService;
import com.oa.core.exception.BusinessException;
import com.oa.core.exception.DataIsEmptyException;

/**
 * <p>
 * 监控表 服务类
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
public interface IMonitoringService extends IService<Monitoring> {
    /**
     * 自定义分页
     *
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageResult<Monitoring> findList(Integer pageNum, Integer pageSize);

    /**
     * 根据id查询
     */
    Monitoring findMonitoringById(String id);


    /**
     * 新增监控
     *
     * @param monitoringAddDTO
     * @return
     */
    Resp addMonitoring(MonitoringAddDTO monitoringAddDTO) throws BusinessException;

    /**
     * 根据条件查询监控列表
     *
     * @param page
     * @param limit
     * @return
     */
    PageResult<MonitoringListVO> findMonitoringListByCondition(Integer page, Integer limit) throws DataIsEmptyException;

    /**
     * 根据id查询监控详情
     *
     * @param id
     * @return
     */
    Resp findMonitoringDetailsById(String id) throws DataIsEmptyException;

    /**
     * 根据id编辑监控
     *
     * @param monitoringUpdateDTO
     * @return
     */
    Resp updatMonitoringDetailsById(MonitoringUpdateDTO monitoringUpdateDTO) throws BusinessException;

    /**
     * 导出监控列表
     *
     * @return
     */
    Resp exportMonitoringList() throws DataIsEmptyException, BusinessException;
}
